package org.example;
//命令模式
//定义空调控制命令类
public abstract class AirConditionerCommand {
    private AirConditioner airConditioner;

    public AirConditionerCommand(AirConditioner airConditioner) {
        this.airConditioner = airConditioner;
    }

    public AirConditioner getAirConditioner() {
        return airConditioner;
    }

    public abstract void execute();
}
